package cm.wc.Dao;

import cm.wc.domain.Book;

import java.sql.SQLException;
import java.util.List;

/**
 * @ClassName:BookDao
 * @Author: 鹿建文
 * @Date: 2022/3/30  - 15:40
 * @Describe:
 */
public interface BookDao {
      int insertBook(Book book);
      int updateBook(Book book);
      int deletetBook(Integer id) throws SQLException;
      List<Book>selectAll() throws SQLException;
      List<Book>selectAll(Integer pageNum,Integer pageSize);
      List<Book>selectBooksByName(String name) throws SQLException;
      List<Book>selectBooksByNameLike(String name) throws SQLException;

      List<Book>  selectBookById(Integer id) throws SQLException;
}
